package net.xdclass.user.service;

import net.xdclass.user.model.vo.UserVO;
import net.xdclass.user.request.UserLoginRequest;
import net.xdclass.user.request.UserRegisterRequest;
import net.xdclass.common.JsonData;

import javax.servlet.http.HttpServletRequest;

public interface UserService {

    /**
     * 用户注册
     * @param request
     * @return
     */
    JsonData register(UserRegisterRequest request);

    /**
     * 用户登录
     * @param request
     * @return
     */
    JsonData login(HttpServletRequest request, UserLoginRequest user);

    /**
     * 查询当前用户
     * @return
     */
    UserVO selectCurrentUser();

}
